package com.nsn.das.midas.model.component;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.nsn.das.midas.model.BaseEntity;

@Entity
@Table(name = "build")
public class Build extends BaseEntity{
	private static final long serialVersionUID = 1824657176047284658L;

	private String name;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="release_id")
	private Release release;
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public Release getRelease() {
		return release;
	}
	
	public void setRelease(Release release) {
		this.release = release;
	}
}
